import { DefaultThemeLocaleOptions } from "vuepress";

export const enUSLocale: DefaultThemeLocaleOptions = {
  selectLanguageName: 'English (US)',
  editLinkText: 'Edit this page',

  // Repo config
  repo: 'https://gitee.com/iscastcse/riscv-porting-wiki',
  repoLabel: 'View on Gitee',
  docsRepo: 'https://gitee.com/iscastcse/riscv-porting-wiki',
  docsBranch: 'master',
  docsDir: 'docs',
  editLink: true,

  navbar: [
    {
      text: 'Links',
      children: [
        {
          text: 'ISCAS',
          link: 'http://www.iscas.ac.cn',
        }
      ]
    },
  ],
  sidebar: {
    '/en-US/': [
      {
        text: 'Welcome',
        link: '/en-US/',
        children: [
          '/en-US/CONTRIBUTING'
        ],
      },
      {
        text: 'Introduction',
        link: '/en-US/01_introduction/00_introduction',
        collapsible: true,
        children: [
          '/en-US/01_introduction/01_memory-model',
          '/en-US/01_introduction/02_dev-board-diff',
          '/en-US/01_introduction/03_rv-isa-module',
        ],
      },
      {
        text: 'Common Adjustment',
        link: '/en-US/02_common/00_introduction',
        collapsible: true,
        children: [
          '/en-US/02_common/01_is-project-ready-for-multi-arch',
          '/en-US/02_common/02_file-structure',
          '/en-US/02_common/03_directory-structure',
          '/en-US/02_common/04_testcase',
        ],
      },
      {
        text: 'C/C++ Program',
        link: '/en-US/03_cxx-program/00_introduction',
        collapsible: true,
        children: [
          '/en-US/03_cxx-program/01_inline-asm',
          '/en-US/03_cxx-program/02_macro',
          '/en-US/03_cxx-program/03_hex-const',
          '/en-US/03_cxx-program/04_intrinsic',
          '/en-US/03_cxx-program/05_func-multi-versioning',
        ],
      },
      {
        text: 'Configuration File',
        link: '/en-US/04_compile-config/00_introduction',
        collapsible: true,
        children: [
          '/en-US/04_compile-config/01_rpmbuild',
          '/en-US/04_compile-config/02_makefile',
          '/en-US/04_compile-config/03_cmake',
          '/en-US/04_compile-config/04_autoconf',
          '/en-US/04_compile-config/05_qmake',
          '/en-US/04_compile-config/06_others',
        ],
      },
      {
        text: 'Other Programming Language',
        link: '/en-US/05_others/00_introduction',
        collapsible: true,
        children: [
          '/en-US/05_others/01_rust',
          '/en-US/05_others/02_go',
          '/en-US/05_others/03_python',
          '/en-US/05_others/04_others',
        ],
      },
    ],
  },
}
